home *** CD-ROM | disk | FTP | other *** search
/ Pesquisa Dirigida / Pesquisa Dirigida.iso / JOGOS / Arcade_Animals_2.swf / scripts / DefineSprite_225 / frame_12 / DoAction.as
Text File  |  2005-01-07  |  359b  |  12 lines

  1. thistX = getProperty("/crab1", _X);
  2. thistY = getProperty("/crab1", _Y);
  3. sptX = getProperty("/light", _X);
  4. sptY = getProperty("/light", _Y);
  5. diftX = thistX - sptX;
  6. diftY = thistY - sptY;
  7. xtStp = diftX / "20";
  8. ytStp = diftY / "20";
  9. setProperty("/light", _X, sptX + xtStp);
  10. setProperty("/light", _Y, sptY + ytStp);
  11. thisYe = getProperty("/light", _Y);
  12.